package com.fuyd.pms.background.service;

import com.fuyd.pms.background.repository.MerchantDao;
import com.fuyd.pms.entity.Merchant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 商户管理的Service
 * Created by fuyongde on 2016/1/7.
 */
@Service
public class MerchantService {

    private MerchantDao merchantDao;

    @Autowired
    public void setMerchantDao(MerchantDao merchantDao) {
        this.merchantDao = merchantDao;
    }

    /**
     * 根据id查找商户
     * @param id 商户id
     * @return
     */
    public Merchant findById(String id) {
        return merchantDao.findOne(id);
    }


}
